package com.dd.cloud.user.entity.chknowl;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "书院方剂分类表")
public class ChknowlCurrCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 分类名
     */
    @Column(comment = "分类名", length = 32)
    private String name;

    /**
     * 父级
     */
    @Column(comment = "父级id")
    private Integer pid;

    /**
     * 层级
     */
    @Column(comment = "层级 1,2")
    private Integer level;

    /**
     * 排序
     */
    @Column(comment = "排序")
    private Integer sort;



    /**
     * 状态
     */
    @Column(comment = "状态 1.正常,-1.删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

}
